/*
 * @Author: Jason Liu
 * @Date: 2025-06-04 15:04:49
 * @Desc: 
 */

/**
 * @Author: Jason Liu
 * @description: 导航列表
 */
export const navigationList = [
  {
    name: "指标维护",
    structure: true,
    code: "editIndicator",
    icon: "icon_edit_indicator",
    url: `{biCaliber_url}/indicatorFlow/indicator?indicatorId={code}&dataFactoryVisit=1&timeKey=edit{pageKey}`,
    type: "biPage",
    buttons: ["skip", "next", "save"]
  },
  {
    name: "创建HDW",
    structure: false,
    code: "createHdw",
    icon: "icon_create_hdw",
    type: "module",
    moduleName: "hdwModuleGroup",
    buttons: ["skip", "prev", "next", "save", "modelAdd", "recordModel"]
  },
  {
    name: "创建DWS",
    structure: false,
    code: "createDws",
    icon: "icon_create_dws",
    url: `{biCaliber_url}/indicatorFlow/dws?indicatorId={code}&dataFactoryVisit=1&timeKey=edit{pageKey}`,
    type: "biPage",
    buttons: ["skip", "prev", "next", "save", "async", "dwsAdd"]
  },
  {
    name: "创建ADS",
    structure: false,
    code: "createAds",
    icon: "icon_create_ads",
    url: `{biCaliber_url}/indicatorFlow/ads?indicatorId={code}&dataFactoryVisit=1&timeKey=edit{pageKey}`,
    type: "biPage",
    buttons: ["skip", "prev", "next", "save", "async", "adsAdd"]
  },
  {
    name: "指标配置",
    structure: false,
    code: "setIndicator",
    icon: "icon_set_caliber",
    url: `{biCaliber_url}/indicatorFlow/caliber?indicatorId={code}&dataFactoryVisit=1&timeKey=edit{pageKey}`,
    type: "biPage",
    buttons: ["skip", "prev", "next", "save"]
  },
  {
    name: "指标画布",
    code: "indicatorCanvas",
    structure: false,
    icon: "icon_indicator_canvas",
    url: `{biCaliber_url}/dataFactory/screen/index?dataFactoryVisit=1&timeKey=detail{pageKey}`,
    type: "biPage",
    buttons: ["skip", "next", "prev"]
  },
  {
    name: "报表",
    structure: false,
    code: "selfAnalysis",
    icon: "icon_self_analysis",
    url: `/webui-dataview/adhocanalysis?&timeKey=detail{pageKey}`,
    type: "biPage",
    buttons: ["skip", "prev"]
  }
];

/**
 * @Author: Jason Liu
 * @description: 默认列
 */

export const defaultFieldsList = [{
  columnCode: "created_at",
  columnSize: 0,
  columnType: "timestamp",
  defaultValue: "",
  columnName: "创建时间",
  isNull: false,
  pk: false,
  columnAccuracy: 0
}, {
  columnCode: "modified_at",
  columnSize: 0,
  columnType: "timestamp",
  defaultValue: "",
  columnName: "修改时间",
  isNull: false,
  pk: false,
  columnAccuracy: 0
}, {
  columnCode: "local_table_created_at",
  columnSize: 64,
  columnType: "varchar",
  defaultValue: "CAST(NOW() AS VARCHAR)",
  columnName: "落库时间",
  isNull: false,
  pk: false,
  columnAccuracy: 0
}, {
  columnCode: "source_table_created_at",
  columnSize: 64,
  columnType: "varchar",
  defaultValue: "",
  columnName: "源表创建时间",
  isNull: false,
  pk: false,
  columnAccuracy: 0
}]